<script setup>
import { computed, ref } from 'vue'


const scoreList = ref([100,80,0,60,99])
const betterList = computed(() => {
  return scoreList.value.filter((item) => item>=60)
})
setTimeout(() => {
  scoreList.value.push(55,66)
}, 3000)
</script>

<template>
  <div class="app-page">
    <p>全班分数: {{ scoreList }}</p>
    <p>及格的: {{ betterList }}</p>
  </div>
</template>

<style scoped></style>
